Ext.define('PrjAPLean.view.paapply.RegionalNonPricingAllocationPanel', {
	extend : 'Ext.panel.Panel',
	alias : 'widget.regionalnonpricingallocationpanel',

	requires : [ 'PrjAPLean.view.paapply.RegionalNonPricingAllocationPanelViewModel', 
	             'PrjAPLean.view.paapply.RegionalNonPricingAllocationPanelViewController', 
	             'Ext.form.Panel', 
	             'Ext.form.RadioGroup', 
	             'Ext.form.field.Radio', 
	             'Ext.form.field.Date', 
	             'Ext.toolbar.Toolbar', 
	             'Ext.button.Button', 
	             'Ext.grid.Panel', 
	             'Ext.grid.column.Check', 
	             'Ext.grid.column.Boolean', 
	             'Ext.grid.View', 
	             'Ext.grid.column.Date'
	             ],

	viewModel : {
		type : 'regionalnonpricingallocationvm'
	},
	title : 'RegionalNon Pricing Allocation',
	controller : 'regionalnonpricingallocationvc',
	closable : true,
	itemId : 'regionalnonpricingallocationpanel',
	autoScroll:true,
	layout: 'vbox',
	items : [{
		xtype : 'form',
		layout : 'hbox',
		border : false,
		bodyPadding : 10,
		items : [ {
			xtype : 'container',
			items : [ {
						xtype : 'fieldset',
						collapsible : false,
						layout : 'vbox',
						items : [ {
								xtype : 'fieldset',
								collapsible : true,
								title:'PA金额分配',
								layout : 'vbox',
								margin:'5',
								width:1100,
								items : [ {
										    xtype:'container',
											layout:'hbox',
											margin:'5 0 5 0',
											defaults:{
													allowBlank:false,
													labelAlign : 'right',
													labelWidth : 170
											},
											items:[ {
														xtype:'papricingallocationpanel'
													},
													{
													    xtype : 'combobox',
														fieldLabel : '是否进行再分配',
														name : 'channel',
														editable : false,
														labelAlign : 'right',
														labelWidth : 180,
														style:'margin-top:10px;',
														valueField : 'id',
														displayField : 'name'
													} 
											]
										},
										{
										    xtype:'container',
											layout:'hbox',
											margin:'5 0 5 0',
											defaults:{
													allowBlank:false,
													labelAlign : 'right',
													labelWidth : 170
											},
											items:[ {
													    xtype : 'combobox',
														fieldLabel : '产品组',
														name : 'channel',
														editable : false,
														labelAlign : 'right',
														labelWidth : 180,
														valueField : 'id',
														displayField : 'name'
													},
													{
													    xtype : 'combobox',
														fieldLabel : '申请区域(大区)',
														name : 'channel',
														editable : false,
														labelAlign : 'right',
														labelWidth : 180,
														valueField : 'id',
														displayField : 'name'
													} 
											]
										} ]
							  },
							  {
								  xtype : 'paattachmentsuploadpanel'
							  },
							  {
								  xtype : 'regionalallocationpanel'
							  }
						]
		        } ]
		} ]
	} ],
	buttons : [ 
		{
			xtype : 'button',
			text : '保存',
			width : 150,
			iconCls: 'common_icon_save',
			itemId: 'saveButton',
			handler : 'onRegionalNonPricingAllocationClick'
		},{
			xtype : 'button',
			text : '提交',
			iconCls: 'common_icon_save',
			width : 150,
			itemId: 'saveAndSubButton',
			handler : 'onSaveAndSumitClick'
		}
	]
});
